/* Layout */
import Layout from '@/layout'
export default {
  path: '/employee',
  component: Layout,

  children: [{
    path: '',
    name: 'employees',
    component: () => import('@/views/employee/index.vue'),
    meta: { title: '员工', icon: 'people' }
  }, {
    // path:'/xxx'相对于根路径（协议，域名，端口号）
    // path:'xxx'相对于父路径，这里相当于employee

    path: 'detail/:id', // 路由动态传承
    component: () => import('@/views/employee/details.vue'),
    hidden: true,
    props: true// 通过子父组件，动态传参给页面
  }, {
    path: 'print/:id', // 路由动态传承
    component: () => import('@/views/employee/print.vue'),
    hidden: true,
    props: true// 通过子父组件，动态传参给页面
  }

  ]
}
